<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Chat.aspx.cs" Inherits="Chat" Debug="true" Theme="Office2003 Silver" %>

<%@ Register Assembly="DevExpress.Web.v7.2, Version=7.2.2.0, Culture=neutral, PublicKeyToken=9b171c9fd64da1d1"
    Namespace="DevExpress.Web.ASPxTimer" TagPrefix="dxt" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Chat - QnA </title>
</head>
<body>
<table width="550" border="0" cellpadding="0" cellspacing="0" align="center">
  <!--DWLayoutTable-->
  <tr>
    <td height="97" colspan="3" valign="top">
     <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="100%" height="93" title="qwe">
      <param name="movie" value="../image/banner.swf" />
      <param name="quality" value="high" />
      <embed src="image/banner.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="713" height="93"></embed>
    </object>
    </td>
  </tr>
  <tr>
    <td width="20%" height="453" valign="top"><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td width="60%" valign="top"><!--DWLayoutEmptyCell-->
    
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
    
    </div>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server" RenderMode="Inline" UpdateMode="Conditional">
            <ContentTemplate>
                &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<asp:Timer ID="Timer2" runat="server" Interval="3000" OnTick="Timer2_Tick">
                </asp:Timer>
                <table style="width: 100%">
                    <tr>
                        <td colspan="3" rowspan="2">
                <asp:TextBox ID="TextBox1" runat="server" Height="273px" Width="564px" TextMode="MultiLine" ReadOnly="True"></asp:TextBox></td>
                    </tr>
                    <tr>
                    </tr>
                    <tr>
                        <td style="width: 385px">
                            </td>
                        <td style="width: 104px">
                            </td>
                        <td>
                            </td>
                    </tr>
                    <tr>
                    <td style="width: 385px"></td>
                                       <td>
                                           </td>
                                                          <td></td>
                    </tr>
                </table>
              
      
       
            </ContentTemplate>
            <Triggers>
            <asp:AsyncPostBackTrigger ControlID="Timer2" EventName="Tick" />
          
           
            </Triggers>
             </asp:UpdatePanel>
        &nbsp;&nbsp;&nbsp; &nbsp;
        <asp:UpdatePanel ID="UpdatePanel3" runat="server" UpdateMode="Conditional">
            <ContentTemplate>
                <table style="width: 598px">
                    <tr>
                        <td>
                            <asp:TextBox ID="TextBox2" runat="server" Width="498px"></asp:TextBox></td>
                        <td>
                        </td>
                        <td>
                            <asp:Button ID="Button1" runat="server" Text="Send" OnClick="Button1_Click" Width="76px" /></td>
                    </tr>
                    <tr>
                        <td>
                        </td>
                        <td>
                        </td>
                        <td>
                                           <asp:Button ID="btExit" runat="server" OnClick="btExit_Click" Text="exit" Width="73px" /></td>
                    </tr>
                    <tr>
                        <td>
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                    </tr>
                </table>
            </ContentTemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="Button1" EventName="Click" />
            </Triggers>
        </asp:UpdatePanel>
        <asp:UpdatePanel ID="UpdatePanel2" runat="server">
            <ContentTemplate>
                <table style="width: 351px" align="center">
                    <tr>
                        <td style="width: 201px">
                            <asp:Label ID="Label1" runat="server"></asp:Label></td>
                        <td style="width: 228px">
                            <asp:Button ID="btStartTime" runat="server" Text="Start" OnClick="btStartTime_Click" /></td>
                        <td >
                            <asp:Button ID="btStop" runat="server" Text="Stop" OnClick="btStop_Click" Enabled="False" /></td>
                    </tr>
                    <tr>
                        <td style="width: 201px">
                            Thoi gian chat
                        </td>
                        <td style="width: 228px">
                        </td>
                        <td style="width: 351px">
                            <asp:Label ID="Label2" runat="server" Width="97px"></asp:Label></td>
                    </tr>
                    <tr>
                        <td style="width: 201px">
                        </td>
                        <td style="width: 228px">
                        </td>
                        <td style="width: 351px">
                        </td>
                    </tr>
                </table>
                <asp:Timer ID="Timer1" runat="server" Interval="1000" OnTick="Timer1_Tick">
                </asp:Timer>
            </ContentTemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="btStartTime" EventName="Click" />
                <asp:AsyncPostBackTrigger ControlID="btStop" EventName="Click" />
                <asp:AsyncPostBackTrigger ControlID="Timer1" EventName="Tick" />
            </Triggers>
        </asp:UpdatePanel>
        <br />
        
            
       
     
    </form>
    </td>
    <td width="20%" valign="top"><!--DWLayoutEmptyCell-->&nbsp;</td>
  </tr>
</table>

</body>
</html>
